package org.sepheriel.airy2d.entity;

import org.sepheriel.airy2d.math.Vec2;
import org.sepheriel.airy2d.screen.Camera;
import org.sepheriel.airy2d.screen.Image;

public class Player extends Entity {
	
	private Image tex;
	
	public Player(Image t) {
		super();
		this.setTex(t);
		this.setPos(new Vec2());
	}
	

	
	public void draw() {
		this.getTex().draw(this.getPos());
	}
	
	public void drawCenter(Camera cam) {
		this.getTex().draw((int)cam.viewport.getWidth()/2-tex.getWidth()/2, (int)cam.viewport.getHeight()/2-tex.getHeight()/2);
	}



	public Image getTex() {
		return tex;
	}



	public void setTex(Image tex) {
		this.tex = tex;
	}

}
